package com.ztools.mvp.proxy;


import com.ztools.mvp.IPresenter;
import com.ztools.mvp.IView;

/**
 * 用于View和persenter的绑定和解绑，代理模式->目标接口
 * Created by zhangxuehui on 2018/3/13.
 */
public interface MvpBindCallback<V extends IView, P extends IPresenter<V>> {
    //创建presenter
    P newPresenter();

    //获取presenter
    P getPresenter();

    //设置presenter
    void setPresenter(P p);

    //创建mvp中view对象
    V newMvpView();

    //获取mvp中view对象
    V getMvpView();

    //设置mvp中的view对象
    void setMvpView(V v);
}
